<script setup lang="ts">
defineOptions({
  name: 'Alert'
});
</script>

<template>
  <div class="p">
    <el-card shadow="never" class="mb">
      <template #header>
        <div class="card-header">
          <span>带图标和描述</span>
        </div>
      </template>
      <el-alert
        class="mb"
        title="Success alert"
        type="success"
        description="More text description"
        show-icon
      />
      <el-alert
        class="mb"
        title="Info alert"
        type="info"
        description="More text description"
        show-icon
      />
      <el-alert
        class="mb"
        title="Warning alert"
        type="warning"
        description="More text description"
        show-icon
      />
      <el-alert
        class="mb"
        title="Error alert"
        type="error"
        description="More text description"
        show-icon
      />

      <el-alert
        class="mb"
        title="Success alert"
        type="success"
        description="More text description"
        show-icon
        effect="dark"
      />
      <el-alert
        class="mb"
        title="Info alert"
        type="info"
        description="More text description"
        show-icon
        effect="dark"
      />
      <el-alert
        class="mb"
        title="Warning alert"
        type="warning"
        description="More text description"
        show-icon
        effect="dark"
      />
      <el-alert
        class="mb"
        title="Error alert"
        type="error"
        description="More text description"
        show-icon
        effect="dark"
      />
    </el-card>
  </div>
</template>
